package com.karry.yl.domain.baseinfo;

import com.baomidou.mybatisplus.annotations.TableName;
import com.karry.commons.base.SuperEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 楼宇信息
 */
@TableName("building")
public class Building extends SuperEntity {
    public static final int STATUS_TY = 1;
    private String name; //楼宇名称
    private String floors; //楼层数
    private String function; //功能
    private int texture; //建筑材质 1：钢架结构  2：砖混结构 3：简易房 4：土木机构 5：彩钢板 6：其它
    private int property; //建设属性  1：新建 2：改建 3：扩建 4：租用
    private double area; //建筑面积 单位 平方米
    private BigDecimal cost;//投资规模  单位 万元
    private int type;  //建筑类型  1：住院楼  2：其它
    private int status; //楼宇状态 1：投用 2：在建中
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date buildDate; //开工时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date useDate; //投用时间
    private Long orgId; //所属机构
    private Integer roomNum;//房间数


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFloors() {
        return floors;
    }

    public void setFloors(String floors) {
        this.floors = floors;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public int getTexture() {
        return texture;
    }

    public void setTexture(int texture) {
        this.texture = texture;
    }

    public int getProperty() {
        return property;
    }

    public void setProperty(int property) {
        this.property = property;
    }

    public double getArea() {
        return area;
    }

    public void setArea(double area) {
        this.area = area;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Date getBuildDate() {
        return buildDate;
    }

    public void setBuildDate(Date buildDate) {
        this.buildDate = buildDate;
    }

    public Date getUseDate() {
        return useDate;
    }

    public void setUseDate(Date useDate) {
        this.useDate = useDate;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Integer getRoomNum() {
        return roomNum;
    }

    public void setRoomNum(Integer roomNum) {
        this.roomNum = roomNum;
    }
}
